package com.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.course.entity.Dictionaries;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

/**
 * @Copyright: Copyright (c)  2018-2020 郑州金特莱电子有限公司 All rights reserved.
 * @author: WG
 * @date: 2022/7/5 10:00
 * @Description: TODO
 */
@Component
public interface DictionariesMapper extends BaseMapper<Dictionaries> {

    @Update("UPDATE dictionaries SET pid = #{newId} WHERE pid = #{oldId}")
    Boolean updatePid(Long newId, Long oldId);
}
